package com.fengfeng.sms.providerTest;

import java.util.List;

import com.fengfeng.sms.dao.Contactdao;
import com.fengfeng.sms.daofactory.Factory;
import com.fengfeng.sms.domin.Contact;

import android.test.AndroidTestCase;

public class ContactProviderTest extends AndroidTestCase {
	private Contactdao contactdao;

	protected void setUp() throws Exception {
		contactdao = Factory.getContactdao(getContext());
	}

	public void testgetContactInfo() {
		List<Contact> list = contactdao.getUserInfo(getContext());
		for (int i = 0; i < list.size(); i++) {
			System.out.println(list.get(i).getId() + "  "
					+ list.get(i).getName() + "  " + list.get(i).getNumber());
		}
	}

}
